package com.business.bean.oa;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;
import net.sf.rose.jdbc.bean.annotation.View;

/**
 * 如果申请通过后，就生成一条考勤记录
 */
@Setter
@Getter
@Table(name = "OA_WORK_SUPPLY", description = "考勤补漏表")
@View(name = "OA_WORK_SUPPLY_VIEW", description = "考勤补漏视图")
public class WorkSupply extends ModelBean {

	@Column(pk = true, type = Type.定长文本, description = "补漏编号", canNull = false, size = 32, policy = "UUID")
	private String supplyID = null;

	@Column(type = Type.定长文本, description = "用户编号", size = 32)
	private String userID = null;

	@Column(type = Type.变长文本, description = "用户姓名", size = 50)
	private transient String userName = null;

	@Column(type = Type.变长文本, description = "工号", size = 10)
	private transient String workNo = null;

	@Column(type = Type.定长文本, description = "部门编号", size = 32)
	private transient String departID = null;

	@Column(type = Type.变长文本, description = "部门名称", size = 100)
	private transient String departName = null;

	@Column(type = Type.日期时间, description = "考勤补漏时间")
	private Date deviceTime = null;

	@Column(type = Type.日期时间, description = "提交时间")
	private Date submitTime = null;

	@Column(type = Type.变长文本, description = "申请说明", size = 250)
	private String supplyRemark = null;

	@Column(type = Type.定长文本, description = "审核人编号", size = 32)
	private String checkUserID = null;

	@Column(type = Type.变长文本, description = "审核人姓名", size = 50)
	private transient String checkUserName = null;

	@Column(type = Type.日期时间, description = "审核时间")
	private Date checkTime = null;

	/** 0：未提交；1：通过；2：不通过；6：已提交 */
	@Column(type = Type.数字整型, description = "审核状态")
	private int status;

	@Column(type = Type.变长文本, description = "审核备注", size = 250)
	private String checkRemark = null;

}
